home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / AtomMgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  1.4 KB  |  57 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: AtomMgr.h,v $ $Revision: 1.12 $ $Date: 92/05/14 12:47:47 $ */
  6. /*
  7. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  8. #ifndef _XmAtomMgr_h
  9. #define _XmAtomMgr_h
  10.  
  11. #include <Xm/Xm.h>
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. #define XM_ATOM_CACHE
  18.  
  19. #ifdef XM_ATOM_CACHE
  20. /********    Public Function Declarations    ********/
  21. #ifdef _NO_PROTO
  22.  
  23. extern Atom XmInternAtom() ;
  24. extern String XmGetAtomName() ;
  25.  
  26. #else
  27.  
  28. extern Atom XmInternAtom( 
  29.                         Display *display,
  30.                         String name,
  31. #if NeedWidePrototypes
  32.                         int only_if_exists) ;
  33. #else
  34.                         Boolean only_if_exists) ;
  35. #endif /* NeedWidePrototypes */
  36. extern String XmGetAtomName( 
  37.                         Display *display,
  38.                         Atom atom) ;
  39.  
  40. #endif /* _NO_PROTO */
  41. /********    End Public Function Declarations    ********/
  42. #else /* XM_ATOM_CACHE */
  43. #define XmInternAtom(display, name, only_if_exists) \
  44.         XInternAtom(display, name, only_if_exists)
  45. #define XmGetAtomName(display, atom) \
  46.         XGetAtomName(display, atom)
  47. #endif /* XM_ATOM_CACHE */
  48.  
  49. #ifdef __cplusplus
  50. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  51. #endif
  52.  
  53. #define XmNameToAtom(display, atom) \
  54.         XmGetAtomName(display, atom)
  55.  
  56. #endif /* _XmAtomMgr_h */
  57.